﻿<Page x:Class="University.Workshop.Presentation.Square.Register.PageSecondStepRegisterSquare"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d"
	Title="PageSecondStepRegisterSquare"  Height="563" Width="780">

    <Grid Height="563" Width="780" 
          MaxHeight="563" MaxWidth="780" 
          MinHeight="563" MinWidth="780" 
          HorizontalAlignment="Center" VerticalAlignment="Top">
        <Button Content="Agregar Lote" Height="23" HorizontalAlignment="Left" Margin="451,140,0,0" Name="AddAllotmentbtn" VerticalAlignment="Top" Width="75" Click="AddAllotmentbtn_Click" />
        <TextBox MaxLength="10" Height="23" HorizontalAlignment="Left" Margin="325,140,0,0" Name="AllotmentNameTxBx" VerticalAlignment="Top" Width="120" />
        <DataGrid HeadersVisibility="None"  
                  AutoGenerateColumns="False" 
                  Height="153" 
                  HorizontalAlignment="Left" 
                  Margin="325,169,0,0" 
                  Name="AllotmentsDtgv" 
                  VerticalAlignment="Top" 
                  Width="120" 
                  ItemsSource="{Binding}"
                  CanUserAddRows="False" >
            <DataGrid.Columns>
            <DataGridTemplateColumn Width="101" >
                <DataGridTemplateColumn.CellTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                                <Label Height="20" Width="77" VerticalContentAlignment="Center" Content="{Binding AllotmentName}" HorizontalAlignment="Left" Style="{StaticResource DataGridLabel}"/>
                            <Button Name="DeleteAllotmentDelete" Width="20" Height="20" Click="DeleteAllotmentDelete_Click" Style="{StaticResource Delete_btn}" HorizontalAlignment="Right" />
                        </StackPanel>
                    </DataTemplate>
                </DataGridTemplateColumn.CellTemplate>
            </DataGridTemplateColumn>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</Page>
